VPATH = src
CC = g++
CXXFLAG = --std=c++11 -I headers
HEADERS = $(wildcard headers/*.h)
LIBS = -lsfml-graphics -lsfml-window -lsfml-system
OBJ = main.o \
      mainGame.o \
      player.o \
      enemy.o \
      enemyManager.o
EXEC = ld15
all : game
%.o : %.cpp
	$(CC) -c $< -o $@ $(CXXFLAG)
game : $(OBJ) $(HEADERS)
	$(CC) -o $(EXEC) $(OBJ) $(LIBS)

.PHONY : clean
clean :
	rm $(EXEC) $(OBJ) $(FRONTEND_OBJ) $(TEST_OBJ)
